package org.dromara.merchants.domain.bo;

import org.dromara.merchants.domain.TaSetMeal;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * 套餐业务对象 ta_set_meal
 *
 * @author xiyin321
 * @date 2024-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TaSetMeal.class, reverseConvertGenerate = false)
public class TaSetMealBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long setMealId;

    /**
     * 所属店铺id
     */
    private Long storeId;

    /**
     * 公共分类id
     */
    private Long categoryId;
    /**
     * 店铺特色分类id
     */
    @NotNull(message = "特色分类不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long classificationId;
    /**
     * 套餐名称
     */
    @NotBlank(message = "套餐名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String setMealName;

    /**
     * 套餐价格
     */
    @NotNull(message = "套餐价格不能为空", groups = {AddGroup.class, EditGroup.class})
    private String price;

    /**
     * 售卖状态 0:停售 1:起售
     */
    @NotBlank(message = "售卖状态 0:停售 1:起售不能为空", groups = {AddGroup.class, EditGroup.class})
    private String status;

    /**
     * 描述信息
     */
    private String description;

    /**
     * 图片
     */
    private Long image;

    /**
     * 关联列表
     */
    private List<TaAssociationBo> associationList;
}
